<template>
  <div>
    <Child @send="handleSend" ref="childRef"></Child>
  </div>
</template>
<script setup>
  import { ref, onMounted } from 'vue'
  import Child from './Child.vue'

  const count = ref(0)
  const childRef = ref(null)

  const handleSend = (size) => {
    console.log(size)
  }

  onMounted(() => {
    console.log(childRef.value.title)
  })
</script>

<style lang="less" scoped>

</style>
